package DP.observer;

/**
 * @author msi
 * 场景类
 */
public class Client {
    public static void main(String[] args) {
        ConcreteSubject subject=new ConcreteSubject();
        Observer observer=new ConcreteObserver();
        subject.addObserver(observer);
        subject.doSomething();
    }
}
